package com.ybkj.daijia.server.model;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * 客户常用司机
 *
 * @author Shine
 */
public class UsuallyDriver extends Base {

    /**
     *
     */
    private static final long serialVersionUID = 1L;

    private Long driverId;

    private Driver driver;

    @JsonIgnore
    private Long memberId;// 客户id

    @JsonIgnore
    private String phone;// 客户电话

    private Integer driverTime;// 代驾次数

    public Long getDriverId() {
        return driverId;
    }

    public void setDriverId(Long driverId) {
        this.driverId = driverId;
    }

    public Driver getDriver() {
        return driver;
    }

    public void setDriver(Driver driver) {
        this.driver = driver;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Integer getDriverTime() {
        if (null == driverTime) {
            return 0;
        }
        return driverTime;
    }

    public void setDriverTime(Integer driverTime) {
        this.driverTime = driverTime;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

}
